﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SalesPages.Infrastructure.IService
{
    public interface ICacheManager
    {
        object GetCacheByKey(string key);

        T GetCacheByKey<T>(string key) where T : class;

        void SetCache(string key, object value, int min);

        void SetCacheParallel(IList<Tuple<string, object>> caches, int min);

        IDictionaryEnumerator GetAll();
        void Remove(string key);

    }
}
